/*
 Navicat Premium Data Transfer

 Source Server         : 公司阿里云
 Source Server Type    : SQL Server
 Source Server Version : 13005026
 Source Host           : 121.40.101.29:1433
 Source Catalog        : scm_main_sfl_visit_dev
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13005026
 File Encoding         : 65001

 Date: 18/12/2020 16:23:32
*/


-- ----------------------------
-- Table structure for bd_sys_login_user
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[bd_sys_login_user]') AND type IN ('U'))
	DROP TABLE [dbo].[bd_sys_login_user]
GO

CREATE TABLE [dbo].[bd_sys_login_user] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [account] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [password] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [nickname] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [salt] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [status] int DEFAULT ('1') NULL,
  [update_user] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [update_time] datetime2(7)  NULL,
  [creation_user] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [creation_time] datetime2(7) DEFAULT (getdate()) NULL,
  [phone] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [email] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [bz] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [name] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[bd_sys_login_user] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改人',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'update_user'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改时间',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'update_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建人',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'creation_user'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'creation_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'手机号',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'phone'
GO

EXEC sp_addextendedproperty
'MS_Description', N'邮箱',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'email'
GO

EXEC sp_addextendedproperty
'MS_Description', N'备注',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'bz'
GO

EXEC sp_addextendedproperty
'MS_Description', N'真实名称',
'SCHEMA', N'dbo',
'TABLE', N'bd_sys_login_user',
'COLUMN', N'name'
GO


-- ----------------------------
-- Uniques structure for table bd_sys_login_user
-- ----------------------------
ALTER TABLE [dbo].[bd_sys_login_user] ADD CONSTRAINT [UQ__bd_sys_l__EA162E113CEEFB3E] UNIQUE NONCLUSTERED ([account] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

